package com.songshuai.webapi.login.config;

import feign.Retryer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import static java.util.concurrent.TimeUnit.SECONDS;

@Configuration
public class FeignConfig {
    @Bean
    public Retryer feignRetyer(){
        return new Retryer.Default(1000,SECONDS.toMillis(15),10);
    }
}
